package com.example.finalassignment.pojo;

import java.io.Serializable;

/**
 * 
 * @TableName technology_info
 */
public class TechnologyInfo implements Serializable {
    /**
     * 
     */
    private Integer id;

    /**
     * 文章的uuid
     */
    private String uuid;

    /**
     * 点赞数
     */
    private Integer stars;

    /**
     * 浏览数
     */
    private Integer watch;

    /**
     * 描述
     */
    private String description;

    /**
     * 页面展示图片
     */
    private String showPhoto;

    private static final long serialVersionUID = 1L;

    /**
     * 
     */
    public Integer getId() {
        return id;
    }

    /**
     * 
     */
    public void setId(Integer id) {
        this.id = id;
    }

    /**
     * 文章的uuid
     */
    public String getUuid() {
        return uuid;
    }

    /**
     * 文章的uuid
     */
    public void setUuid(String uuid) {
        this.uuid = uuid;
    }

    /**
     * 点赞数
     */
    public Integer getStars() {
        return stars;
    }

    /**
     * 点赞数
     */
    public void setStars(Integer stars) {
        this.stars = stars;
    }

    /**
     * 浏览数
     */
    public Integer getWatch() {
        return watch;
    }

    /**
     * 浏览数
     */
    public void setWatch(Integer watch) {
        this.watch = watch;
    }

    /**
     * 描述
     */
    public String getDescription() {
        return description;
    }

    /**
     * 描述
     */
    public void setDescription(String description) {
        this.description = description;
    }

    /**
     * 页面展示图片
     */
    public String getShowPhoto() {
        return showPhoto;
    }

    /**
     * 页面展示图片
     */
    public void setShowPhoto(String showPhoto) {
        this.showPhoto = showPhoto;
    }

    @Override
    public boolean equals(Object that) {
        if (this == that) {
            return true;
        }
        if (that == null) {
            return false;
        }
        if (getClass() != that.getClass()) {
            return false;
        }
        TechnologyInfo other = (TechnologyInfo) that;
        return (this.getId() == null ? other.getId() == null : this.getId().equals(other.getId()))
            && (this.getUuid() == null ? other.getUuid() == null : this.getUuid().equals(other.getUuid()))
            && (this.getStars() == null ? other.getStars() == null : this.getStars().equals(other.getStars()))
            && (this.getWatch() == null ? other.getWatch() == null : this.getWatch().equals(other.getWatch()))
            && (this.getDescription() == null ? other.getDescription() == null : this.getDescription().equals(other.getDescription()))
            && (this.getShowPhoto() == null ? other.getShowPhoto() == null : this.getShowPhoto().equals(other.getShowPhoto()));
    }

    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((getId() == null) ? 0 : getId().hashCode());
        result = prime * result + ((getUuid() == null) ? 0 : getUuid().hashCode());
        result = prime * result + ((getStars() == null) ? 0 : getStars().hashCode());
        result = prime * result + ((getWatch() == null) ? 0 : getWatch().hashCode());
        result = prime * result + ((getDescription() == null) ? 0 : getDescription().hashCode());
        result = prime * result + ((getShowPhoto() == null) ? 0 : getShowPhoto().hashCode());
        return result;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", id=").append(id);
        sb.append(", uuid=").append(uuid);
        sb.append(", stars=").append(stars);
        sb.append(", watch=").append(watch);
        sb.append(", description=").append(description);
        sb.append(", showPhoto=").append(showPhoto);
        sb.append(", serialVersionUID=").append(serialVersionUID);
        sb.append("]");
        return sb.toString();
    }
}